import psycopg2

conn = psycopg2.connect(database='cg', user='postgres', password='dch20001121', host='127.0.0.1', port='5432')

print("create database successfully")